package org.raymond.icloud.apis.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

@Data
@Accessors(chain = true)
public class LoginRequest {
    @ApiModelProperty(name="username", value = "用户名称", dataType="String")
    @NotEmpty(message = "username不能为空")
    private String username;

    @ApiModelProperty(name="password", value = "密码", dataType="String")
    @NotEmpty(message = "password不能为空")
    private String password;
}
